import request from '@/utils/request'





// 门诊完成
export function mzOK(data) {
  return request({
    url: '/his/record/addyf',
    method: 'post',
    data: data
  })
}






// 查询药方列表
export function listRecord(query) {
  return request({
    url: '/his/record/list',
    method: 'get',
    params: query
  })
}

// 查询药方详细
export function getRecord(id) {
  return request({
    url: '/his/record/' + id,
    method: 'get'
  })
}

// 新增药方
export function addRecord(data) {
  return request({
    url: '/his/record',
    method: 'post',
    data: data
  })
}

// 修改药方
export function updateRecord(data) {
  return request({
    url: '/his/record',
    method: 'put',
    data: data
  })
}

// 删除药方
export function delRecord(id) {
  return request({
    url: '/his/record/' + id,
    method: 'delete'
  })
}

// 导出药方
export function exportRecord(query) {
  return request({
    url: '/his/record/export',
    method: 'get',
    params: query
  })
}